package db.nio;

/**
 * 处理器接口
 * Created by daibin on 10/12/16.
 */
public  interface Processor<T> {

    /**
     * 处理
     *
     * @param data
     * @param context
     */
      void doProcessor(T data, ChannelContext context);


    /**
     * 异常
     *
     * @param context
     */
    void doException(Throwable e, ChannelContext context);

    /**
     * 关闭
     *
     * @param context
     */
     void doClose(ChannelContext context);

}
